package com.codeZ.BuilderPattern.example01.builder;

import com.codeZ.BuilderPattern.example01.product.Bike;

/**
 * 哈罗单车建造者
 *
 * @author codeZhang
 * @Date 2024/8/2 16:02
 */
public class HelloBuilder extends Builder {
    @Override
    public void buildFrame() {
        mBike.setFrame("碳纤维车架");
    }

    @Override
    public void buildSeat() {
        mBike.setSeat("橡胶车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
